package com.yonyou.sto.modules.ims.model;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 
 * @TableName IMS_RETURN_INVOICE_ITEM
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("IMS_RETURN_INVOICE_ITEM")
@ApiModel(value="ImsReurnInvoiceItem对象", description="")
public class ImsReturnInvoiceItem implements Serializable {

    private static final long serialVersionUID=1L;

    @TableId(value = "ID",type = IdType.INPUT)
    private String id;

    @ApiModelProperty(value = "收款单id")
    @TableField("BILL_ID")
    private String billId;

    @ApiModelProperty(value = "收款单编号")
    @TableField("BILL_SN")
    private String billSn;

    @ApiModelProperty(value = "发票流水号")
    @TableField("BILL_SERIAL")
    private String billSerial;

    @ApiModelProperty(value = "手动开票id")
    @TableField("MANUAL_ID")
    private String manualId;

    @ApiModelProperty(value = "商品编号")
    @TableField("PRODUCT_SN")
    private String productSn;

    @ApiModelProperty(value = "商品代码")
    @TableField("PRODUCT_NO")
    private String productNo;

    @ApiModelProperty(value = "商品名称")
    @TableField("PRODUCT_NAME")
    private String productName;

    @ApiModelProperty(value = "税目id")
    @TableField("TAX_ITEM_ID")
    private Long taxItemId;

    @ApiModelProperty(value = "税目大类")
    @TableField("TAX_ITEM_NAME")
    private String taxItemName;

    @ApiModelProperty(value = "商品单位")
    @TableField("PRODUCT_UNIT")
    private String productUnit;

    @ApiModelProperty(value = "商品规格")
    @TableField("PRODUCT_SPEC")
    private String productSpec;

    @ApiModelProperty(value = "购买数量")
    @TableField("PRODUCT_QUANTITY")
    private Integer productQuantity;

    @ApiModelProperty(value = "商品单价")
    @TableField("PRODUCT_PRICE")
    private BigDecimal productPrice;

    @ApiModelProperty(value = "总价")
    @TableField("PRODUCT_AMOUNT")
    private BigDecimal productAmount;

    @ApiModelProperty(value = "含税单价")
    @TableField("TAX_PRICE")
    private BigDecimal taxPrice;

    @ApiModelProperty(value = "税额")
    @TableField("TAX_QUOTA")
    private BigDecimal taxQuota;

    @ApiModelProperty(value = "税率")
    @TableField("TAX_RATE")
    private BigDecimal taxRate;

    @ApiModelProperty(value = "折扣")
    @TableField("DISCOUNT")
    private BigDecimal discount;

    @ApiModelProperty(value = "价税合计")
    @TableField("TAX_AMOUNT")
    private BigDecimal taxAmount;

    @ApiModelProperty(value = "提交时间")
    @TableField("CREATE_TIME")
    private String createTime;

    @ApiModelProperty(value = "单据状态")
    @TableField("STATUS")
    private Integer status;

    @ApiModelProperty(value = "NC主表主键")
    @TableField("PK_NCH")
    private String pkNch;

    @ApiModelProperty(value = "NC时间")
    @TableField("TS")
    private String ts;

    @ApiModelProperty(value = "单据类型")
    @TableField("DJLX")
    private String djlx;

    @ApiModelProperty(value = "NC子表主键")
    @TableField("PK_NCB")
    private String pkNcb;

    @ApiModelProperty(value = "客户物料码")
    @TableField(" CUSTMATCODE")
    private String custmatcode;

    @ApiModelProperty(value = "客户物料名称")
    @TableField("CUSTMATNAME")
    private String custmatname;

    @ApiModelProperty(value = "申请人名称")
    @TableField("APPLYNAME")
    private String applyname;

    @ApiModelProperty(value = "申请人编码")
    @TableField("APPLYCODE")
    private String applycdoe;

    @ApiModelProperty(value = "申请人日期")
    @TableField("APPLYDATE")
    private String applydate;

    @ApiModelProperty(value = "无税金额")
    @TableField("WSJE")
    private BigDecimal wsje;

    @ApiModelProperty(value = "开票申请金额")
    @TableField("APPLYJE")
    private BigDecimal applyje;

    @ApiModelProperty(value = "NC物料分类主键")
    @TableField("PK_NCMATEG")
    private String pkNcmateg;

    @ApiModelProperty(value = "NC客户主键")
    @TableField("PK_NCCUST")
    private String pkNccust;


}